﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Silverlight.Sample
{
    public class ViewModel
    {
        public List<Sample> Samples { get; set; }

        public ViewModel()
        {
            Samples = new List<Sample>();

            Samples = new List<Sample>();
            Samples.Add(new Sample { Discription = "Column series", Name = "Column", UISample = new ColumnType { DataContext = new DataViewModel() { CanUpdate = false } } });
            Samples.Add(new Sample { Discription = "Line series", Name = "Line", UISample = new LineType { DataContext = new DataViewModel() } });
            Samples.Add(new Sample { Discription = "Pie series", Name = "Pie", UISample = new PieType { DataContext = new DataViewModel { CanUpdate = false } } });
            Samples.Add(new Sample { Discription = "Doughnut series", Name = "Doughnut", UISample = new DoughnutType { DataContext = new DataViewModel { CanUpdate = false } } });
            Samples.Add(new Sample { Discription = "Spline series", Name = "Spline", UISample = new SplineType { DataContext = new DataViewModel { UpdateSpeed = TimeSpan.FromMilliseconds(200), MaxData = 20 } } });
            Samples.Add(new Sample { Discription = "Area series", Name = "Area", UISample = new AreaType { DataContext = new DataViewModel() } });
            Samples.Add(new Sample { Discription = "Spline area series", Name = "SplineArea", UISample = new SplineAreaType { DataContext = new DataViewModel() {} } });
            Samples.Add(new Sample { Discription = "Step line series", Name = "StepLine", UISample = new Stepline { DataContext = new DataViewModel() } });
            Samples.Add(new Sample { Discription = "Step area series", Name = "StepArea", UISample = new StepArea { DataContext = new DataViewModel() } });
            Samples.Add(new Sample { Discription = "Range column series", Name = "RangeColumn", UISample = new RangeColumnType { DataContext = new DataViewModel() } });
            Samples.Add(new Sample { Discription = "HiLo series", Name = "HiLo", UISample = new HiLoType { DataContext = new DataViewModel() } });
            Samples.Add(new Sample { Discription = "Scatter series", Name = "Scatter", UISample = new Scatter { DataContext = new DataViewModel() } });
            Samples.Add(new Sample { Discription = "Bubble series", Name = "Bubble", UISample = new Bubble { DataContext = new DataViewModel() } });
        }
    }
}
